<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"></link>
</head>
<body class="container">
	<br />
	<h1>用户列表</h1>
	<br />
	<div>
		<table class="table table-hover">
			<thead>
				<tr>
					<th>No</th>
					<th>Name</th>
					<th>Email</th>
					<th>Edit</th>
					<th>Delete</th>
				</tr>
			</thead>
			<tbody>
				<tr th:each="user : ${users}">
					<th scope="row" th:text="${user.id}">1</th>
					<td th:text="${user.name}">root</td>
					<td th:text="${user.email}">123456</td>
					<td><a th:href="@{/toEdit(id=${user.id})}"> edit </a></td>
					<td><a th:href="@{/delete(id=${user.id})}"> delete </a></td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="form-group">
		<div class="col-sm-2 control-label">
			<a href="/toAdd" th:href="@{/toAdd}" class="btn btn-info"> add
			</a>
		</div>
	</div>


</body>
</html>